Chapter 1 Using JManager 1Figure 1-1 The Java runtime environment, JManager, and a Mac OS application 4
Figure 1-2 An instantiated Java session 5
Figure 1-3 Frames versus windows 6
Figure 1-4 Removing an applet window 22
Table 1-1 Application-defined frame functions 18
Listing 1-1 Creating a session 7
Listing 1-2 Using the
JMIdle
function 11Listing 1-3 Using the
JMNewAppletLocatorFromInfo
function 12Listing 1-4 Using the
JMNewAppletLocator
function 13Listing 1-5 Retrieving information from an applet's HTML page 14
Listing 1-6 Creating an AWT context 15
Listing 1-7 Application-defined new frame function 16
Listing 1-8 Determining the window associated with a frame 17
Listing 1-9 A callback function to change the title of a window 19
Listing 1-10 Instantiating an applet 21
Listing 1-11 Handling events 23
Listing 1-12 Handling a frame update event 24
Listing 1-13 Sending an activate event to a frame 25
Listing 1-14 Sending a resume event to frames 25
Listing 1-15 Handling a mouse event 26
Listing 1-16 Handling a keyboard event 29
Listing 1-17 Handling a menu item selection 30
Listing 1-18 Launching a Java application 33
Listing 1-19 Using an Apple event handler to quit a Java application 35
Chapter 2 JManager Reference 37
Table 2-1 JManager result codes 108
Appendix A Mac OS-Related Issues 109
Table A-1 Mac OS-related issues 109